﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.ServiceModel.WCF.BindingMessage
{
    [Serializable]
    [XmlRoot("reliableSession")]
    public class SerReliableSession
    {
        private bool enabledField = false;

        private bool orderedField = true;

        private string inactivityTimeoutField = "00:10:00";

        /// <remarks/>
        [XmlAttribute("enabled")]
        public bool Enabled
        {
            get
            {
                return this.enabledField;
            }
            set
            {
                this.enabledField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("ordered")]
        public bool Ordered
        {
            get
            {
                return this.orderedField;
            }
            set
            {
                this.orderedField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("inactivityTimeout")]
        public string InactivityTimeout
        {
            get
            {
                return this.inactivityTimeoutField;
            }
            set
            {
                this.inactivityTimeoutField = value;
            }
        }
    }
}
